//
//  ZYImageUtils.h
//  ZYhop
//
//  Created by Zyark on 2017/4/10.
//  Copyright © 2017年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZYImageUtils : NSObject
/**
 自定义图片大小

 @param image 图片
 @param reSize 大小
 @return 自定义大小的图片
 */
+(UIImage *)reSizeImage:(UIImage *)image toSize:(CGSize)reSize;

/**
 等比例缩放

 @param image 图片
 @param scaleSize 缩放百分比
 @return 缩放后的图片
 */
+ (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;

+(UIImage*)imageWithCornerRadius:(CGFloat)radius image:(UIImage *)image;

+ (UIImage *)imageWithColor:(UIColor *)color rect:(CGRect)rect;

+ (YYWebImageManager *)avatarImageManagerWithRadius:(CGFloat)radius;

+ (YYWebImageManager *)avatarImageManager;
@end
